﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UC2.master" AutoEventWireup="true"
    CodeFile="UC2Password.aspx.cs" Inherits="User_UC2Password" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
<form id="webform" runat="server">
    <div class="userright">
        <div class="title">修改用户密码</div>

        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="edit_profile">
            <tbody>
                <tr>
                    <td width="100" valign="middle">
                        用 户 名：
                    </td>
                    <td valign="middle">
                        <asp:TextBox ID="tbxName" runat="server" Enabled="false"></asp:TextBox>                        
                    </td>
                </tr>
                <tr>
                    <td valign="middle">
                        当前密码：
                    </td>
                    <td valign="middle">
                        <asp:TextBox ID="tbxNowPassowrd" runat="server" MaxLength="30" TextMode="Password"></asp:TextBox>
                        <span style="color:Red">*</span>
                        <asp:RequiredFieldValidator ID="rfvNowPass" runat="server" ErrorMessage="当前密码必填！" ControlToValidate="tbxNowPassowrd"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="middle">
                        新的密码：
                    </td>
                    <td valign="middle">
                        <asp:TextBox ID="tbxNewPassowrd" runat="server" MaxLength="30" TextMode="Password"></asp:TextBox>
                        <span style="color:Red">*</span>
                        <asp:RequiredFieldValidator ID="rfvNewPass" runat="server" ErrorMessage="新的密码必填！" ControlToValidate="tbxNewPassowrd"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="middle">
                        确认新密码：
                    </td>
                    <td valign="middle">
                        <asp:TextBox ID="tbxNewPassowrd2" runat="server" MaxLength="30" TextMode="Password"></asp:TextBox>
                        <span style="color:Red">*</span>
                        <asp:CompareValidator ID="cvtbxNewPass" runat="server" ErrorMessage="填入的两次新密码必需一致" 
                        ControlToCompare="tbxNewPassowrd2" ControlToValidate="tbxNewPassowrd" ValueToCompare="="></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                         <asp:Label ID="lbMsg" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                         <asp:Button ID="btnSave" runat="server" Text=" 提交修改 " OnClick="btnSave_Click" Style="cursor: pointer;" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</form>
</asp:Content>
